
import * as actionTypes from '../action-types';
const initialState = {number:0}
function reducer(state=initialState, action) {
	switch (action.type) {
		case actionTypes.ADD1:
			return { number: state.number + 1 };
		case actionTypes.MINUS1:
			return { number: state.number - 1 };
		default:
			return state;
	}
}
export default reducer;